package com.bida.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 套餐菜品关系
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SetmealDish222 implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    //套餐id
    private Long setmealId;

    //菜品id
    private Long dishId;

    //菜品名称 （冗余字段）
    private String name;

    //菜品原价
    private BigDecimal price;

    //份数
    private Integer copies;

    /**
     * 套餐
     */
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Setmeal implements Serializable {

        private static final long serialVersionUID = 1L;

        private Long id;

        //分类id
        private Long categoryId;

        //套餐名称
        private String name;

        //套餐价格
        private BigDecimal price;

        //状态 0:停用 1:启用
        private Integer status;

        //描述信息
        private String description;

        //图片
        private String image;

        private LocalDateTime createTime;

        private LocalDateTime updateTime;

        private Long createUser;

        private Long updateUser;
    }
}
